P1=P2 for a hydraulic system so F1/A1 = F2/A2 . You know 3 out of 4 variables. Use this equation to solve for the force.
You can also derive this from work in = work out (ideally) F1d1 = F2d2 and ΔV = d1A1 = d2A2 which can be rearranged to yield the same equation as above.
Good luck!