If GST registered vendor purchased material from unregistered vendor and sells to registered vendor. It's comes under reverse charge.
Example - Vendor-A purchased material of RS 800 from unregistered vendor -X and sells material to vendor-B in RS 1000 (180)GST= RS 1180.
Then how much GST paid by Vendor-A to government.