When the piggy bank was opened, it yielded $4.05 in nickels and pennies. If there were 157 nickels and pennies altogether, how many of each were there in the bank? [Instructions: Indicate pennies using P and nickels using N. Example: N=1, P=2]