Dominic has $0.88 worth of pennies and nickels. He has a total of 28 pennies and nickels altogether. Determine the number of pennies and the number of nickels that Dominic has.