If you had come to the festival, you would have met me.
You would have met me if you had come to the festival.
If you had come to the festival, you would have met me.
「もし君がその祭りに来ていたら、きみは私に会っていただろう」
の意味です。
仮定法過去完了という形を使いました。
If S had 過去分詞~, S would have 過去分詞・・・
という形で、
「もし~していたら、・・・していただろう」と過去の事実に反することを仮定的に言う時の言い方です。
以上です。
少しでも参考になれば幸いです(*^_^*)