Original: He also wrote 10 sonatas for violin and piano and five sonatas for cello and piano.
Simplified: Violin sonatas, flute sonatas etc usually have piano accompaniment but are not normally called “duets”. Piano trios are pieces for piano, violin and cello. A piano quartet would be for piano, violin, viola and cello.