Solution: We are given that:
5 people can paint 7 walls in 21 minutes
Therefore, 1 person can paint 7 walls in
minutes
Which means 1 person can paint 1 wall in
minutes
Now, 3 people can paint 1 wall in
minutes
Therefore, 3 people can paint 5 walls in
minutes