Solvability = Typability + Inhabitation (Logical Methods in Computer Science, 2021)