Maia and John both earn $15 an hours their job. This week Mais worked three hours more than John. If "h" represents the number of hours John worked, and in total they earned $195, how many hours did each person work?