R = hours Ryan worked
K = hours Kari worked
R + K = 28
R = K + 4 or R - K = 4
combining the two equations:
2R = 32
R = 16
Ryan worked 16 hours, so Kari worked 12 hours.
edit: I know your answer was right, but you didn't show all the steps, nor a system of equations. Some teachers can be very picky about showing the work.