A ship sails 7 miles from port p on a course of 027 degree to port q, changes course to 290 degree and sails a further 9 miles to a port r. Calculate the distance pr?