The correct option is B If only we had known about the weather conditions
The correct sentence is ‘If only we had known about the weather conditions, we would have planned our trip better.’ It has the conjunction ‘if only’, followed by the subject of the sentence ‘we’, the helping verb ‘had’, and the past participle form of the main verb ‘know’, which is ‘known’.