A ship leaves port and sails on a bearing of 28 degrees. Another ship leaves the same port at the same time and sails on a bearing of 118 degrees. If the first ship sails at 20 miles per hour and the second sails 24 miles per hour, find the distance between the two ships after five hours.