How do I repair Barth's ship?


Hint 1 of 2:
He gives you all of the necessary items.

Hint 2 of 2:
Do it yourself!