Answer: Object A has more specific heat, by a factor of \(\tfrac{5}{3}\) (about 1.67 times that of B).
Formula: heat given \(Q = m c \Delta T\)
For A: \(Q = m c_A \times 3\); for B: \(Q = m c_B \times 5\)
Heat \(Q\) and mass \(m = 1\ \text{g}\) are equal, so
\(m c_A \times 3 = m c_B \times 5 \Rightarrow \dfrac{c_A}{c_B} = \dfrac{5}{3}\)
Since \(c_A > c_B\), object A has more specific heat; its specific heat is \(\tfrac{5}{3}\) times that of B. (For the same heat, the object with greater specific heat shows a smaller rise in temperature.)