Help me in solving PREQ17 problem

My issue

solution

My code

X = 3
Y = 4
Z = 12
if (Z%X == 0) and (Z%Y == 0):
    print('Z is divisible by both X and Y')
elif (Z%X == 0):
    print('Z is divisible only by X')
elif (Z%Y == 0):
    print('Z is divisible only by Y')
else:
    print('Z is divisible by neither X nor Y')

X = 3
Y = 5
Z = 13
if (___ == 0) and (___ == 0):
    print('Z is divisible by both X and Y')
elif (___ == 0):
    print('Z is divisible only by X')
elif (___ == 0):
    print('Z is divisible only by Y')
else:
    print('Z is divisible by neither X nor Y')
    

Learning course: Design and Analysis of Algorithms
Problem Link: Problem(Farm animals) - Solve sub-components in Design and Analysis of Algorithms