How can u write a unit rate if a least one term is a fraction? How is this different from writing a unit rate where both terms are whole numbers?

2 pencils cost 4/10 of a dollar. What does one pencil cost?