The net electric field at the point P is the superposition of the forces from each of the two rods (finite and semi-infinite) as follows:
where I used λ = Q/L and I used the fact that the point P was a distance 3L from the end of the semi-infinite rod.