Spaceship I, which contains students taking a physics exam, approaches Earth with a speed of 0.640 c, while spaceship II, which contains instructors proctoring the exam, moves away from Earth at 0.280 c, as in Figure P26.27. If the instructors in spaceship II stop the exam after 65 min have passed on their clock, how long does the exam last as measured by (a) the students (b) an observer on earth

I've been trying relative velocity addition followed but time dilation but have not gotten the problem right so far