Let D be the number of dimes.
Then the number of nickels is (51-D).
D dimes contribute 10*D cents to the total.
(51-D) nickels contribute 5*(51-D) cents to the total.
The "value" equation is
5*(51-D) + 10*D = 355 cents.
Simplify and solve it for D.
You will find there the lessons for all levels - from introductory to advanced,
and for all methods used - from one equation to two equations and even without equations.
Read them and become an expert in solution of coin problems.