Let x be the number of nickels that Nicholas has, y the number of dimes, and z the number quarters. Using the given information we can set the following system of equations:

Substituting the second and third equations in the first one we get:

Solving for x we get:

Substituting x=12 in the second and third equations on the board, we get:

Answer: Nicholas has 12 nickels, 27 dimes, and 36 quarters.