Matt and Bill shared a painting job in a ratio of 5:8. Bill worked 9 h more than Matt. How many hours did Bill work? Matt?
Multiply the ratio by 3 to get 15:24.
I assume you can take it from here...