the above mentioned issues are not 'problems'; they are homework exercises.
a) Compton scattering:
Please get familiar with Compton scattering. You will find in your lecture notes some formulae with respect to Compton scatter. One of them relates the incoming photon energy, the scatter angle and photon energy of the outgoing one. Apply this formula two times and you will find the energy of the x-ray photon leaving the detector. You now only have to calculate the energy which is stuck in the detector.
b) x-ray attenuation:
Please get familiar the term 'mass attenuation coefficient' and how it is related to the linear x-ray attenuation coefficient.
Get familiar on how the x-ray photon flux (or intensity) goes down as a function of linear x-ray attenuation coefficient and the length of pathway in the material. In your lecture notes you will find the Lambert-Beer law. It is an exponential description of the photon flux decrease. Please apply the decrease of photon flux according to different materials, which are passed by the x-ray beam, when going through the detector. There is no necessity to apply the exponential operation for each of the materials individually. You may clever combine the material and thickness informations first and then apply only once the exponential operation. From the outcome of the Lambert-Beer law you will get the proportion of the x-ray beam, which will escape from the detector at its back.
It is up to you now to calculate the fraction of photons, which will be stuck in the whole detector. ---- A hint, which makes this calulation very easy: For the x-ray photon energy regime here you can neglect any reflection and back-scattering of the primary x-ray photons at the entrance surface.