As part of their government class, Maddie and Ryan had to log volunteer hours in their community. Ryan volunteered for one more than three times the numbers of hours that Maddie did. Altogether, they volunteered in their community for 45 hours. How many hours did Ryan volunteer?