An angle is two rays with a common endpoint, called the vertex. The rays are the sides of the angle.
In the angle ∠XYZ, the vertex is Y, and the sides are rays
and
You can name angles by three letters, X on one side, the vertex Y, and Z on the other side: ∠XYZ and ∠ZYX are both names for this angle. Or an angle can be named by just its vertex, for example, ∠Y, as long as it is the only angle with that vertex.
Therefore, the correct option is B