scratch together

중상급 (B2) informal

To slowly find and collect just enough of something you need, usually with a lot of effort.

"They scratched together enough cash for one night in a hostel and a train ticket home."