The veteran sailor contrives a makeshift pulley rig to hoist the jammed mainsail.
contrive
verb · /kənˈtraɪv/
To devise, plan, or create something cleverly or through ingenious improvisation.
Do not confuse "contrive" (to engineer or devise a plan) with "construe" (to interpret or understand meaning) or "control" (to direct and restrain).
Old French controver ("to invent, compose") from Vulgar Latin contropare ("to find a figure or metaphor"), from Latin cum- ("together") + tropos ("turn, figure of speech") → to invent creatively.