An airplane travels 5432 km. On the outward trip, it took 7 hours with the wind. On the return trip, it took 8 hours against the wind. What was the speed of the plane and the speed of the wind?

(Remember: distance = speed x time)

since distance = speed * time,

7(p+w) = 5432
8(p-w) = 5432