Algebra:

Amirah is 4 years older than Priya and Shirley is 2 years younger then Priya. If the sum of their ages is 47, find their respective ages.


Please give an explanation and step by step answer. Thanks.​