Two water heaters share a sprinkler head. This installation is possible, but water valves must be installed at both ends of the tee.
If you want the water from the solar water heater to flow to the electric storage water heater, you need to modify it, but this is unnecessary and inefficient, because the tanks of the water heater solar are equipped with additional electric heating. Direct electric heating is much faster than electric water heater, because after all, the water in the solar water tank is much higher than the tap water temperature.
In the attached photo, the water pipe on the left leads to the solar water heater: