Answer:
x+y=15 ; 2x+4y=50
Explanation:
Let x be the number of people
Let y be the number of dogs.
Equation regarding Total Heads:
Total number of heads = 15
As
1 person has 1 head
1 dog has 1 head
Total no. of heads of people = 1 * x = x
Total number of heads of dogs = 1*y = y
Equation becomes:
x+y=15
Equation regarding Total Legs:
Total number of legs = 50
As
1 person has 2 legs
1 dog has 4 legs
Total no. of legs of people = 2 * x = 2x
Total number of legs of dogs = 4*y = 4y
Equation becomes:
2x+4y=50