To compare the score of Ryan and Sam, we need to convert the fractions to decimals.
Ryan got 7/8 problems correct, which is equivalent to 0.875 when expressed as a decimal.
Sam got 80% correct, which is equivalent to 0.8 when expressed as a decimal.
So, Ryan got a better score