An equation of a plane has the form
where is the normal vector to the plane.
It can be shown that the angle between two planes' normal vector equals the angle between the planes. You can use the dot product
I am not sure if you copied the question correctly, as the two planes have different normal vectors so they must be distinct.