Answer:
The firm would choose the input with the lower cost.
Step-by-step explanation:
Perfect subsituites are goods that can be used in place of one another. If the price of one good rises, the demand for the other good increases.
A profit maximising firm would aim to use the cheapest input available, so in the long run when all inputs of production are variable, the firm would choose the less expensive input.
I hope my answer helps you