The recovered exponent computes the peer shared value.
Use x on the peer public value
If the peer public value is 19, the recovered exponent can compute the shared secret.
19xmodp
The shared value appears
The ladder computes 19 to x=6 modulo 23 and gets 2.
196mod23=2
It matches legitimate DH arithmetic
The same value 2 is the toy DH shared secret for this pinned exchange.
shared=2
Summary
In a tiny group, brute force recovers the exponent and then the shared secret.
shared secret=2