There are x no of 5 rupee coins and the no. of 2 rupee coins is 3 times more than the no of 5 rupee coins. Their total sum=₹77. Find the number of ₹2 coins and ₹5 coins.

number of fivers --- x

number of twos ---- 3x

5x + 2(3x) = 77

solve for x and state conclusion