B is correct.
If the house with the gate to the front yard is two houses to the right of the house with the front porch, then the house with the gate to the front yard can only be house 3, 4 or 5.
If the house with the gate to the front yard is also one house to the left of the house with the garden, then the house with the gate to the front yard can only be house 3 or 4 and the house with the garden is house 4 or 5.
If the house with the garden is immediately to the left of the house with the wide driveway, then the house with the garden must be house 4.
Therefore, the house with the gate to the front yard is house 3 and the house with the wide driveway is house 5. If the leftmost house does not have the blue door, then house 2 must have the blue door which means it does not have the front porch. House 1 has the front porch.