A plane is capable of flying 200 km/h. There is a wind of 90 km/h from the east. The pilot flies in a northwest direction relative to the ground for three hours from city A to city B. Find the speed of the plane relative to the ground, the heading of the plane, and the distance between city A and city B.