Hello and welcome to e health forum.
At your age, it seems that you may be having severe constipation, and it may have resulted in anal fissures or hemorrhoids, which are the cause of the pain as well as rectal bleeding.
You may consult with a doctor for a rectal examination and proper treatment of the appropriate condition.
In the mean time, application of local anesthetic creams like preparation H ; Sitz bath, and relief of constipation by diet and lifestyle changes and use of laxatives as needed, may help to provide relief to your symptoms.