See the below explanation
Explanation:
Task 1: Configure IPv4
1. IPv4 Subnet Analysis:
Subnet: 10.10.24.0/28

Subnet Mask: 255.255.255.240

Usable IP Range: 10.10.24.1 to 10.10.24.14 (first usable: 10.10.24.1, last usable: 10.10.24.14)

Broadcast Address: 10.10.24.15

2. Configuration on R1:
R1> enable
R1# configure terminal
R1(config)# interface e0/0
R1(config-if)# ip address 10.10.24.1 255.255.255.240
R1(config-if)# no shutdown
3. Configuration on R2:
R2> enable
R2# configure terminal
R2(config)# interface e0/0
R2(config-if)# ip address 10.10.24.14 255.255.255.240
R2(config-if)# no shutdown
3. Verify IPv4 Connectivity:
From R1:

R1# ping 10.10.24.14
From R2:

R2# ping 10.10.24.1
Task 2: Configure IPv6
1. IPv6 Subnet Analysis:
Subnet: 2001:db8:18::/125

Usable Range: 2001:db8:18::1 to 2001:db8:18::6 (first usable: 2001:db8:18::1, last usable:

2001:db8:18::6)
Do not assign 2001:db8:18:: (subnet router anycast address).

2. Configuration on R1:
R1> enable
R1# configure terminal
R1(config)# interface e0/0
R1(config-if)# ipv6 address 2001:db8:18::1/125
R1(config-if)# no shutdown
3. Configuration on R2:
R2> enable
R2# configure terminal
R2(config)# interface e0/0
R2(config-if)# ipv6 address 2001:db8:18::6/125
R2(config-if)# no shutdown
4. Verify IPv6 Connectivity:
From R1:

R1# ping 2001:db8:18::6
From R2:

R2# ping 2001:db8:18::1
Final Steps:
1. Save configurations on both routers:
R1# write memory
R2# write memory
2. Verify connectivity and interface status using:
show ip interface brief
show ipv6 interface brief