Hello, I'm not a teacher.
The first example is an example of active voice. The second example is an example of passive voice.
Active voice is when a verb does something. Passive voice is when a verb is receiving the action. The two prior sentences are examples of active and passive. Do you understand? :)
Student or Learner