t test vs z test

Two samples were drawn from two normally distributed populations. For the first sample the mean was $50 and the standard deviation was $5. For the second sample, the mean was $55 and the standard deviation was $6. The first sample consists of 25 observations and the second sample consists of 36 observations. For Ho: u1 = 48 vs Ha: u1 is not equal to 48. (u1 references the first sample) 1% level of significance The book states a t test here is appropriate. But wouldnt the z test be appropriate since its a normal distribution even with less than 25 observations?

I think I figured it out, I assumed the sample variance was the population variance which is not the case, hence use the t test.