In Beloy's fish ball factory, it costs $25 to make 15 pieces of fishball while it costs $40 to make 27 pieces. Assuming that the total cost is described by a linear function, how much does it cost to make 19 pieces of fishball?

A. $30
B. $31
C. $32
D. $33