The correct option is B If only I had time I would do it.
A and C state that they would not do the work even if they had the time. D asks another if he had the time and could do the work. Only B states that he would do the work if only he had the time. In this context, B is most likely to do the work. B is the answer.